package com.cqu.hhx.driver.mapper;

import com.cqu.hhx.driver.entity.DoingOrder;
import com.cqu.hhx.driver.entity.FinishOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

/**
 * @author DJ
 * @create 2020-05-24 23:23
 */
@Mapper
public interface DoingOrderMapper {
    //添加进行中订单
    public int addOrder(DoingOrder order);
    //乘客获取进行中订单信息
    public DoingOrder customerGetOrder(@Param("customerId") Long customerId);
    //司机获取进行中订单信息
    public DoingOrder driverGetOrder(@Param("driverId") Long driverId);
    //通过订单Id删除订单信息
    public int deleteOrderById(@Param("orderId") Long orderId);
    //获取当前所有进行中订单
    public List<DoingOrder> getAllDoingOrder();

}
